    @GetMapping("contractExport")
    public void export(
            HttpServletRequest request,
            HttpServletResponse response,
            @RequestParam(value = "startTime",required = false)String startTime,
            @RequestParam(value = "endTime",required = false)String endTime,
            @RequestParam(value = "minSalary",required = false)Long minSalary,
            @RequestParam(value = "maxSalary",required = false)Long maxSalary,
            @RequestParam(value = "type",required = false)String type,
            @RequestParam(value = "status",required = false)String status,
            @RequestParam(value = "header",required = false)Long header) {
        try {
            String[] headers = { "主键", "工作流号", "合同编号", "流程名称", "合同编号", "流程状态","合同名称","合同金额","合同类型","归档状态","我方主体","对方主体","创建人","部门code","部门名称","创建时间" };
            List<LinkedHashMap<String,Object>> data = contractWorkflowService.contractChartList(startTime,endTime,status,minSalary,maxSalary,type,header);
            List<String[]> list = new ArrayList<>();
            for (LinkedHashMap<String, Object> map : data) {
                int index = 0;
                String[] str = new String[map.size()];
                str[index++] = map.get("id")+"";
                str[index++] = map.get("proinsertid")+"";
                str[index++] = map.get("contractCode")+"";
                str[index++] = map.get("flowName")+"";
                str[index++] = map.get("approvalCode")+"";
                str[index++] = map.get("flowStatusText")+"";
                str[index++] = map.get("contractName")+"";
                str[index++] = map.get("contractAmount")+"";
                str[index++] = map.get("type")+"";
                str[index++] = map.get("pigeonholeStateText")+"";
                str[index++] = map.get("ourCompany")+"";
                str[index++] = map.get("otherMainBody")+"";
                str[index++] = map.get("createName")+"";
                str[index++] = map.get("applyOrgCode")+"";
                str[index++] = map.get("applyOrgName")+"";
                str[index++] = map.get("createDate")+"";
                list.add(str);
            }
            String excelName = "合同报表";
            response.setContentType("octets/stream");
            response.addHeader("Content-Disposition", "attachment;filename="+new String( excelName.getBytes("gb2312"), "ISO8859-1" )+".xlsx");
            OutputStream out = response.getOutputStream();
            POIUtil.exportExcel(excelName, headers, list, out);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }